import {defineStore} from 'pinia';

export const useUserInfoStore = defineStore('user', {
    state: () => ({
        userInfo: null,
    }),
    actions: {
        setUserInfo(userInfo) {
            this.userInfo = userInfo;
        },
        clearUserInfo() {
            this.userInfo = null;
        },
    },
});
